package com.example.demo.controller;

import java.text.ParseException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.service.ShouYeService;

@RestController
@RequestMapping(value = "/shouye")
public class ShouYeController {
	@Autowired
	private ShouYeService service;
	
	/**
	 * @return 年收益一览（新车，维修，二手车）
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/nianShouYiYiLan")
	public Object nianShouYiYiLan() throws ParseException {
		return service.nianShouYiYiLan();
	}
}
